﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SR.API
{
    public class SliderImage
    {
        public string ImageName { get; set; }
        public string ImageUrl { get; set; }
        public string LinkUrl { get; set; }
        public string ImageAltTag { get; set; }
        public string SliderTransitionEffect { get; set; }

        public SliderImage(string name, string url, string link, string alt, string transitionEffect)
        {
            try
            {
                this.ImageUrl = url;
                this.ImageName = name;
                this.ImageAltTag = alt;
                this.SliderTransitionEffect = transitionEffect;
                if (!link.IsNullOrEmpty())
                    this.LinkUrl = link;
                else
                    this.LinkUrl = string.Empty;

            }
            catch (Exception ex)
            {
                throw ex;
            }
            
        }
    }
}
